@mixin userTabs($user_bgc: #1c8a91, $user_bdc: #1f9da6, $user_hover: #28949c, $user_color: #000, $user_icon: '../images/home/cr_icon.png', $space_bgc:#209ea7, $space_bdc: #209ea7, $space_hover: #28949c, $space_color: #000) {
    color: #ffffff;
    .space {
        float: left;
        width: 119px;
        height: $topNavHeight;
        background: $space_bgc;
        position: relative;
        z-index: $zindexMiddle;
        cursor: pointer;
        overflow: hidden;
        &:before {
            position: absolute;
            z-index: $zindexMiddle;
            top: 22px;
            left: 18px;
            display: block;
            content: ' ';
            width: 16px;
            height: 16px;
            background: url(../images/home/space_icon.png) no-repeat 0 0 transparent;
        }
        .txt {
            display: block;
            line-height: $topNavHeight;
            padding-left: 44px;
            color: #ffffff;
        }
        .icon {
            width: 8px;
            height: 8px;
            position: absolute;
            z-index: $zindexMiddle;
            top: 26px;
            right: 15px;
            .xr {
                display: block;
                @extend .hideFont;
                height: 1px;
                background: #afdcdf;
                margin-bottom: 2px;
            }

        }
        .hover-box {
            position: absolute;
            z-index: $zindexMiddle;
            top: $topNavHeight;
            right: 0;
            width: 256px;
            border: 2px solid $space_bgc;
            border-top: none;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            background: #ffffff;
            cursor: auto;
            opacity: 0;
            filter: alpha(opacity=0);
            height: 0;
            overflow: hidden;
            -webkit-transition: all .3s linear;
            -moz-transition: all .3s linear;
            -ms-transition: all .3s linear;
            -o-transition: all .3s linear;
            transition: all .3s linear;
            ul {
                padding: 0 20px 0 10px;
                li {
                    padding: 14px 15px;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    .gray-tips {
                        font-size: 13px;
                        color: #9a9b9c;
                    }
                    a {
                        font-size: 15px;
                        color: $space_color;
                        &:hover {
                            color: $space_hover;
                        }
                    }
                    &.manager {
                        border-top: 1px solid #e5e5e5;
                        a {
                            color: #006699;
                        }
                    }
                }
            }
        }

        &:hover {
            overflow: visible;
            .hover-box {
                opacity: 1;
                filter: alpha(opacity=100);
                height: auto;
            }
        }
    }
    .user-box {
        float: left;
        width: $homeRightWidth - 119px;
        height: $topNavHeight;
        background: $user_bgc;
        position: relative;
        z-index: $zindexMiddle;
        cursor: pointer;
        overflow: hidden;
        .name {
            float: left;
            width: $homeRightWidth - 119px - 56px;
            line-height: $topNavHeight;
            text-align: center;
            color: #ffffff;
        }
        .avatar {
            float: left;
            width: 56px;
            height: 56px;
        }

        .hover-box {
            position: absolute;
            z-index: $zindexMiddle;
            top: $topNavHeight;
            right: 0;
            width: 330px;
            border: 2px solid $user_bdc;
            border-top: none;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            background: #ffffff;
            cursor: auto;
            opacity: 0;
            filter: alpha(opacity=0);
            height: auto;
            overflow: hidden;
            -webkit-transition: all .3s linear;
            -moz-transition: all .3s linear;
            -ms-transition: all .3s linear;
            -o-transition: all .3s linear;
            transition: all .3s linear;
            .user-name {
                font-size: 15px;
                padding: 15px;
                i {
                    color: #d58930;
                }
            }
            .tabs-list {
                width: 333px;
                div {
                    border-top: 1px solid #e1e2e3;
                }
                .tab-item {
                    display: block;
                    float: left;
                    width: 82px;
                    height: 80px;
                    border: 1px solid #e1e2e3;
                    border-left: none;
                    border-bottom: none;
                    -webkit-box-sizing: border-box;
                    -moz-box-sizing: border-box;
                    box-sizing: border-box;
                    text-align: center;
                    font-size: 13px;
                    color: $user_color;
                    margin-top: -1px;
                    padding: 0 2px;
                    &:hover {
                        color: $user_hover;
                        i {
                            color: $user_hover;
                        }
                    }
                    i {
                        font-size: 20px;
                        display: block;
                        margin: 15px auto 12px;
                        &.adjust {
                            margin-bottom: 0;
                        }
                    }
                }
            }
            .change-region-box {
                border-top: 1px solid #e1e2e3;
                padding: 0 0 15px 15px;
                h3 {
                    font-size: 13px;
                    font-weight: normal;
                    color: #9a9b9c;
                    padding: 10px 0;
                }
                a {
                    float: left;
                    display: block;
                    margin: 0 15px 15px 0;
                    width: 138px;
                    height: 38px;
                    font-size: 15px;
                    color: #000;
                    text-align: center;
                    border: 1px solid #e1e2e3;
                    border-radius: 5px;
                    position: relative;
                    z-index: $zindexMin;
                    overflow: hidden;
                    div {
                        border: 1px solid transparent;
                        line-height: 36px;
                        border-radius: 3px;
                    }
                    &:after {
                        display: none;
                        content: ' ';
                        width: 21px;
                        height: 22px;
                        background: url($user_icon) no-repeat 0 0 transparent;
                        position: absolute;
                        z-index: $zindexMin;
                        top: 0;
                        left: 0;
                    }
                    &.focus, &:hover {
                        border-color: $user_hover;
                        div {
                            border-color: $user_hover;
                        }
                        &:after {
                            display: block;
                        }
                    }
                }
            }
        }

        &:hover {
            overflow: visible;
            .hover-box {
                opacity: 1;
                filter: alpha(opacity=100);
                height: auto;
            }
        }
    }
}